import service from "@/service/http"
export default {
  // 获取地域列表
  getRegionList(data) {
    return service({
      method: "get",
      url: "/eci-service/eci/op/get_regions",
      params: data
    })
  },
  // 查询边缘集群列表
  getEdgeClusters(data) {
    return service({
      method: "get",
      url: "/eks-service/op/edge_clusters",
      params: data
    })
  },
  // 查询边缘集群对应节点列表
  getEdgeNodes(data) {
    return service({
      method: "get",
      url: "/eks-service/op/edge_nodes",
      params: data
    })
  },
  // 获取资源池机器列表
  getKvmHosts(data) {
    return service({
      method: "get",
      url: "/eks-service/op/kvm_hosts",
      params: data
    })
  },
  // 边缘集群添加节点
  addEdgeNode(data) {
    return service({
      method: "post",
      url: "/eks-service/op/add_node",
      data
    })
  },
  // 边缘集群移除节点
  delEdgeNode(data) {
    return service({
      method: "post",
      url: "/eks-service/op/del_node",
      data
    })
  },
  // 边缘节点设置可调度
  setSchedule(data) {
    return service({
      method: "post",
      url: "/eks-service/op/set_schedule",
      data
    })
  }
}